package me.sealer.ssm.controller.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 功能描述： $ NewMenuRequest
 *
 * @author sealer
 * @email 1178884049@qq.com
 * @date 2020年01月09日 16时49分27秒
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "菜单新增请求报文体")
public class NewMenuRequest {
    @ApiModelProperty(value = "菜单路由")
    private String name;

    @NotBlank(message = "菜单别名不能为空")
    @ApiModelProperty(value = "菜单别名", required = true)
    private String alias;

    @NotBlank(message = "菜单图标不能为空")
    @ApiModelProperty(value = "菜单图标", required = true)
    private String icon;

    @NotBlank(message = "菜单类型不能为空")
    @ApiModelProperty(value = "菜单类型", required = true, allowableValues = "NONE, LINK")
    private String type;

    @NotBlank(message = "菜单描述不能为空")
    @ApiModelProperty(value = "菜单描述", required = true)
    private String description;

    @NotNull(message = "父菜单id不能为空")
    @ApiModelProperty(value = "父菜单id", required = true)
    private Integer parentMenuId;
}
